<template>
    <view class="container">

        <uni-list>
            <uni-list-item to="/pages/user/UpdateInfo" title="个人信息" :show-extra-icon="true" showArrow :extra-icon="extraIcon" />
            <uni-list-item to="/pages/user/Secure" title="账号安全" :show-extra-icon="true" showArrow :extra-icon="extraIcon" />
            <!-- <uni-list-item to="/pages/mall/ShippingAddressList" title="收货地址" :show-extra-icon="true" showArrow :extra-icon="extraIcon" /> -->
        </uni-list>

        <!-- <uni-list class="item"> -->
			<!-- #ifdef APP-PLUS -->
            <!-- <uni-list-item to="/pages/cms/Agreement?id=77" title="隐私政策" :show-extra-icon="true" showArrow :extra-icon="extraIcon" />
            <uni-list-item to="/pages/cms/Agreement?id=76" title="服务协议" :show-extra-icon="true" showArrow :extra-icon="extraIcon" /> -->
            <!-- #endif -->
			<!-- <uni-list-item to="/pages/user/Report" title="问题反馈" :show-extra-icon="true" showArrow :extra-icon="extraIcon" /> -->
            <!-- #ifdef APP-PLUS -->
			<!-- <uni-list-item to="/pages/cms/Agreement?id=78" title="经营资质" :show-extra-icon="true" showArrow :extra-icon="extraIcon" /> -->
            <!-- #endif -->
			<!-- <uni-list-item to="/pages/cms/Agreement?id=79" title="关于我们" :show-extra-icon="true" showArrow :extra-icon="extraIcon" /> -->
        <!-- </uni-list> -->

        <view @click="logout()" class="uni-btn btn">退出登录</view>

    </view>
</template>

<script>
import { LoginApi } from '@/api/user/LoginApi'
import { UserApi } from '@/api/user/UserApi'

export default {
    data() {
        return {
			Config: this.$Config,
			Common: this.$Common,
			Auth: this.$Auth,
			ShareUtil: this.$ShareUtil,
			State: this.$store.state,
			Dict: this.$Dict,

            extraIcon: {
                color: '#4cd964',
                size: '22',
                type: 'gear-filled'
            }
        }
    },
    onLoad(e) {
    },
    onShow() {
    },
    methods: {
        logout() {
            let that = this
            uni.showModal({
                title: '提示',
                content: '确定退出吗？',
                success: function (res) {
                    if (!res.confirm) return

                    that.Auth.removeToken()
                    that.$store.dispatch('user/removeInfo')
                    uni.reLaunch({
                        url: "/pages/user/login/PwdLogin"
                    })
                },
            })
        },
    }
}
</script>

<style lang="scss" scoped>
.item{margin-top:20px;}
.btn{ margin:30px 15px 0 15px;}

</style>
